import { enableEnums } from '@/constants/enum';

export interface IPageMaterialParams {
  materialName?: string;
  unit?: string;
}

export interface IPageMaterialResult {
  materialNo: string;
  materialName: string;
  materialUnit: string;
  materialDesc: string;
  status: string;
  updateTime: string;
  modifyBy: string;
}

export interface IMaterialDrop {
  materialNo: string;
  materialName: string;
  materialUnit: string[];
}

export interface IUpdateStatusParams {
  materialNo: string;
  status: keyof typeof enableEnums;
}

export interface IAddMaterial {
  materialName: string;
  materialUnit: string[];
  materialDesc?: string;
  materialNo?: string;
}
